package org.dna.metronomo.persistence;

import org.tigris.scarab.model.Module;

/**
 *
 * @author andrea
 */
public interface IModuleDAO {

    void insert(Module module) throws PersistenceException;

    Module findByID(int key) throws PersistenceException;
    
    /**
     * Returns the first module with the given name null if there isn't any.
     */
    Module findByName(String name) throws PersistenceException;
}
